package com.haizhi.crm.sys.auth.model;

import com.haizhi.crm.common.model.PageQo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by chengmo on 2018/5/15.
 */
@Data
public class UserQo extends PageQo implements Serializable {

    protected static final long serialVersionUID = 1L;

    @NotNull(message = "用户ID不能为空" )
    private Long userId;

    @ApiModelProperty(value = "员工编号" )
    private String userNo;

    @ApiModelProperty(value = "员工姓名" )
    private String name;
    private String sex;
    private String password;

    @ApiModelProperty(value = "员工身份证号码" )
    private String idNumber;

    @ApiModelProperty(value = "内线号码" )
    private String extensionNo;

    @ApiModelProperty(value = "部门ID" )
    private Long departmentId;

    @ApiModelProperty(value = "员工状态" )
    private String status;

    @ApiModelProperty(value = "员工岗位ID" )
    private Long positionId;

    @ApiModelProperty(value = "岗位编号" )
    private String type;

    @ApiModelProperty(value = "邮箱" )
    private String email;

    @ApiModelProperty(value = "电话号码" )
    private String phone;

    @ApiModelProperty(value = "用户状态:1可用；0不可用" )
    @NotNull(message = "用户状态不能为空" )
    private String enabledFlag;

    @ApiModelProperty(value = "签证" )
    @NotNull(message = "签证不能为空" )
    private String signature;
}
